package cn.iocoder.yudao.module.train.dal.dataobject.connectDTO;

import cn.iocoder.yudao.module.train.dal.dataobject.courseclasses.CourseClassesDO;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDateTime;

import static cn.iocoder.yudao.framework.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND;

@Data
public class CourseClassesCommodityDTO extends CourseClassesDO {

    @Schema(description = "课程名称")
    private String courseName;

    @Schema(description = "商品名称")
    private String commodityName;

    @Schema(description = "老师姓名")
    private String teacherName;

    @Schema(description = "学生报名人数")
    private Long studentQuantity;

    @Schema(description = "开课时间")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalDateTime beginTime;

    @Schema(description = "结课时间")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalDateTime endTime;
}
